﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyNhaSach.BusinessLogicLayer
{
    class QuanLyUserBLL
    {
        public DataTable DangNhap(string name, string pass)
        {
            DataAccessLayer.UserDAO a = new DataAccessLayer.UserDAO();
             return a.DangNhap(name, pass);
        }
        public void DangKy(string name, string pass, string type)
        {
            DataAccessLayer.UserDAO a = new DataAccessLayer.UserDAO();
            a.DangKy(name, pass, type);
        }
        public DataTable KiemTraUserName(string name)
        {
            DataAccessLayer.UserDAO a = new DataAccessLayer.UserDAO();
            return a.KiemTraUserName(name);
        }
    }
}
